<?$this->session->set_flashdata('http_referer',current_url());?>
<div class="row">
	<div class="panel callout">
			<h6>Show Fees (Assesment)</h6>
	</div>
	<fieldset>
		<div class="btn-group">
		  <a class="btn" href="<?=site_url('tuition-fees');?>">Tuition</a></button>
		  <a class="btn" href="<?=site_url('student_fees/cca');?>">Matriculation</a></button>
		  <a class="btn" href="<?=site_url('miscellaneous-fees');?>">Other School</a></button>
		  <a class="btn" href="<?=site_url('other-fees');?>">Miscellaneous</a></button>
		  <button class="btn current">Assessment</button>
		  <!--<a class="btn" href="<?=site_url('elective-fees');?>">Electives</a></button>-->
		  <a class="btn btn-danger" href="<?=site_url('add-fees');?>" class="confirm" title="Continue to fee Creator and add new fee?"><i class="icon-plus"></i> Add Fee</a></button>
		</div>
	</fieldset>

<?if(isset($system_message))echo $system_message;?>
<?echo $links?>
<fieldset>
<legend>Existing Assessment Fees</legend>
<table class="data-table">
	<?if(!empty($fee_data)):?>
		<thead class="tabular-head">
		<tr>
			<th>Fee Name</th>
			<th>Fee Rate</th>
			<th>Fee Description</th>
			<th class="center">&nbsp;</th>
			<th class="center">&nbsp;</th>
		</tr>
		</thead>
		<tbody class="tabular">
		<?foreach($fee_data as $gld):?>
			<tr>
				<td><?=$gld->fee_name;?></td>
				<td class="right">&#8369; <?=money($gld->fee_rate);?></td>
				<td style="min-width:100px;"><?=$gld->fee_desc;?></td>
				<td><a href="<?=site_url('update-fees').'/'.$gld->fee_id;?>" class="btn btn-mini btn-success">Edit</td>
				<?if($gld->fee_stat == 'inactive'):?>
					<? $hash = $this->authlink->hash_make($gld->fee_id);?>
					<td><a href="<?=site_url('enable-afee/'.$gld->fee_id.'/'.$hash);?>" class="confirm btn btn-mini btn-warning" title="Are you sure you want to enable fee?">Enable</td>
				<?else:?>
					<td><i class="icon-check"></i></td>
				<?endif;?>
			</tr>
		<?endforeach;?>

		</tbody>
	<?else:?>
		<div class="alert">No data avaialable</div>
	<?endif;?>

</table>
</fieldset>
</div>